<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>เพิ่มข้อมูลนักศึกษา</title>
<style type="text/css">
.body {
}
#boxuser{
	background-color: #444041;
	height: auto;
	width: 760px;
}
body,td,th {
	color: #FFF;
}
</style>
</head>

<body>



<div id="boxuser">
<form action="?module=admin&page=add_student" method="post" enctype="multipart/form-data" name="frm_student" id="frm_student">
  <table width="759" border="0" align="center" cellpadding="0" cellspacing="0" id="show_menu">
    
    <tr>
      <th height="35" colspan="3" align="center" bgcolor="#999999">กรุณากรอกข้อมูลนักศึกษา</th>
    </tr>
    
    <tr>
      <td width="375" height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="36%" height="33" scope="col">&nbsp;</th>
          <td width="64%" align="left" scope="col"><span class="style_1">รหัสเข้าใช้ระบบ(รหัสนักศึกษา)</span></td>
        </tr>
      </table></td>
      <td width="7" height="35" bgcolor="#999999">:</td>
      <td width="450" height="35" bgcolor="#999999"><span class="style_1">
        <input name="student_id" type="text" id="student_id" size="30" maxlength="40" />
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="36%" height="31" scope="col">&nbsp;</th>
          <td width="64%" align="left" scope="col"><span class="style_1">ชื่อเข้าใช้ระบบ(รหัสบัตรประชาชน)</span></td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
        <input name="student_username" type="text" id="student_username" size="30" maxlength="80" />
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="65%" height="29" scope="col">&nbsp;</th>
          <td width="35%" align="left" scope="col"><span class="style_1">คำนำหน้าชื่อ</span></td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999">
      <select name="student_prefix" size="1" id="sec_ major">
        <option value="นาย">นาย</option>
        <option value="นาง">นาง</option>
        <option value="นางสาว">นางสาว</option>
      </select>     
      </td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="65%" height="28" scope="col">&nbsp;</th>
          <td width="35%" align="left" scope="col">ชื่อนักศึกษา</td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
        <input name="student_name" type="text" id="student_name" size="20" maxlength="40" />
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="65%" height="29" align="left" scope="col">&nbsp;</th>
          <td width="35%" align="left" scope="col">นามสกุลนักศึกษา</td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
        <input name="student_surname" type="text" id="student_surname" size="20" maxlength="40" />
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="65%" height="29" scope="col">&nbsp;</th>
          <td width="35%" align="left" scope="col"><span class="style_1">เพศนักศึกษา</span></td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
        <input type="radio" name="student_sex" id="radio" value="M" checked="checked" />
        ชาย
        <input type="radio" name="student_sex" id="radio2" value="F" />
        หญิง</span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="65%" height="29" scope="col">&nbsp;</th>
          <td width="35%" align="left" scope="col"><span class="style_1">วันเดือนปีเกิด</span></td>
        </tr>
      </table>
	  </td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
        <input name="student_birthday" type="text" id="student_birthday" size="20" readonly="readonly" />
        <script language="JavaScript" type="text/javascript">
			$(function(){
				$('#student_birthday').datepicker({dateFormat: 'yy-mm-dd'});
			});
        </script>
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="65%" height="36" scope="col">&nbsp;</th>
          <td width="35%" align="left" scope="col"><span class="style_1">อีเมล์นักศึกษา</span></td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
        <input name="student_email" type="text" id="student_email" size="30" maxlength="80" onblur="return checkemail()"/>
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="65%" height="30" scope="col">&nbsp;</th>
          <td width="35%" align="left" scope="col"><span class="style_1">ที่อยู่นักศึกษา</span></td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
          <textarea name="student_add" id="student_add" cols="40" rows="3"></textarea>
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="65%" height="37" scope="col">&nbsp;</th>
          <td width="35%" align="left" scope="col"><span class="style_1">เบอร์นักศึกษา</span></td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
        <input name="student_tel" type="text" id="student_tel" size="30" maxlength="80" onblur="return checkemail()"/>
      </span></td>
    </tr>
     <tr>
         <td height="35" align="right" bgcolor="#999999"><table width="100%" border="0" cellspacing="0" cellpadding="0">
           <tr>
             <th width="58%" height="29" scope="col">&nbsp;</th>
             <td width="42%" align="left" scope="col"><span class="style_1">รูปภาพนักศึกษา</span></td>
           </tr>
         </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><input type="file" name="student_image" id="student_image"  /></td>
        </tr>
    <tr>
      <td height="35" bgcolor="#999999"><table width="100%" border="0" align="left">
        <tr>
          <td width="65%">&nbsp;</td>
          <td width="35%">ห้องเรียน</td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="40" bgcolor="#999999">
      <select name="room_id" size="1" id="room_id">
        <?php
        $sql = "select * from tb_room";
        $result = $dbfunc->query($sql);
        while($item = mysql_fetch_array($result)){
        ?>
          <option value="<?php echo $item['room_id']; ?>"><?php echo $item['room_des']; ?></option>
        <? } ?>
      </select>
      </td>
    </tr>    
    <tr>
      <td height="36" bgcolor="#999999">&nbsp;</td>
      <td bgcolor="#999999">&nbsp;</td>
      <td bgcolor="#999999"><span class="style_1">
        <input type="submit" name="Submit" id="Submit" value=" บันทึก  " />
      </span></td>
    </tr>
  </table>
  
  <p>&nbsp;</p>
</form>
</div>

</body>
</html>